<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<link rel="stylesheet" href="style.css" type="text/css" />
<div id='cssmenu'>
	<ul>
	   <li class='active '><a href="FirstPage.jsp"><span>Home</span></a></li>
	   <li><a href="default.jsp"><span>Register</span></a></li>
	   <li><a href="searchPage.jsp"><span>Search</span></a></li>
	
	
	<%
	if( session.getAttribute("userName")!=null)
	{
	%>
		<li><a href="addReport.jsp"><span>Add Report</span></a></li>
		<li><a href="default.jsp"><span>Logout</span></a></li>
		
	<%}%>
	</ul>
</div>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Homepage</title>
<style type="text/css">
body{
	margin:0;
}
p{
    color:crimson;
}
</style>
</head>
<body background="images/background.jpg">
	<center>
		<h1>Welcome Member Home Page!</h1>
		<br></br>
		<form name="dummy" action="HomePages" method="get">  
 	
    	<input name="button" type="Submit"  value="Add Report">
    	<br></br>
    	<input name="button" type="Submit"  value="Search for Violation">
    	<br></br>
    	<input name="button" type="Submit"  value="View my reports">
    	<br></br>
    	<input name="button" type="Submit"  value="Log Out">    
    	
    	<table>
	  	<tr>
		<c:if test="${subscriptions == true}">
		<p>Your Subscriptions:</p>
		<ul class="{list-style-type:circle;}">
			<c:forEach var="report" items="${subsReports}">
  				<li><a href="ViewPage?qid=${report.report_id}">${report.reportName}</a></li>
  			</c:forEach>
  		</ul>
  		</c:if>					
	   	</tr>
   		</table>
    	
    	
    	</form>
    </center>
</body>
</html>